package com.koko.service;

import com.github.pagehelper.Page;
import com.koko.game.dto.CategoryDTO;
import com.koko.game.dto.CategoryPageQueryDTO;
import com.koko.game.dto.PublisherDTO;
import com.koko.game.dto.PublisherPageQueryDTO;
import com.koko.game.entity.Category;
import com.koko.game.entity.Publisher;
import com.koko.game.vo.GamePublisherVO;
import com.koko.game.vo.PublisherVO;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;

public interface PublisherService {
    Page<Publisher> pageQuery(PublisherPageQueryDTO publisherPageQueryDTO);

    void save(PublisherDTO publisherDTO, MultipartFile imageFile);

    void deleteBatch(List<Long> ids);

    void update(PublisherDTO publisherDTO, MultipartFile imageFile);

    Publisher getById(Long id);

    Publisher getByGameId(Long gameId);

    GamePublisherVO getPublisherByGameId(Long gameId);

    List<PublisherVO> getAllPublishers(String name);
}
